package ch3;

public class Student {
	String name;
	int math, ch;

	public Student() {
	}

	public Student(String n) {
		// name = n;
		// math = 0;
		// ch = 0;

		this(n, 0, 0);
		show();
	}

	public Student(String n, int m) {
		name = n;
		math = m;
	}

	// // 姓名和语文成绩
	// public Student(String n, int c) {
	// name = n;
	// ch = c;
	// }

	public Student(String n, int m, int c) {
		name = n;
		math = m;
		ch = c;
		show();
	}

	public void show() {
		System.out.println("学生" + name + ",语文：" + ch + "，数学：" + math);
		// this("小吴", 1900, 100);
	}
}
